package com.ccrfid.rmc6.entity.video;

import com.vividsolutions.jts.geom.Point;
import org.hibernate.annotations.Type;

import javax.persistence.*;

@Entity
@Table(name = "v_video_camera")
public class VideoCameraView {
    private Long id;
    private String cameraSn;
    private String cameraName;
    private String orgSn;
    private String orgName;
    private String ip;
    private String ip2;
    private Integer port;
    private String username;
    private String passwd;
    private Integer channelNum;
    private Integer cameraType;
    private String cameraTypeName;
    private Integer cameraVersion;
    private String cameraVersionName;
    private String cameraVersionSn;
    private Integer cameraShape;
    private String cameraShapeName;
    private Integer direction;
    private Point pos;
    private Integer floorNumber;
    private Integer permissionLevel;

    @Id
    @Column(name = "id", nullable = false)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "camera_sn", nullable = false, length = 64)
    public String getCameraSn() {
        return cameraSn;
    }

    public void setCameraSn(String cameraSn) {
        this.cameraSn = cameraSn;
    }

    @Basic
    @Column(name = "camera_name", nullable = true, length = 64)
    public String getCameraName() {
        return cameraName;
    }

    public void setCameraName(String cameraName) {
        this.cameraName = cameraName;
    }

    @Basic
    @Column(name = "org_sn")
    public String getOrgSn() {
        return orgSn;
    }

    public void setOrgSn(String orgSn) {
        this.orgSn = orgSn;
    }

    @Basic
    @Column(name = "org_name")
    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    @Basic
    @Column(name = "ip", length = 15)
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    @Basic
    @Column(name = "ip2", length = 15)
    public String getIp2() {
        return ip2;
    }

    public void setIp2(String ip2) {
        this.ip2 = ip2;
    }

    @Basic
    @Column(name = "port", nullable = true)
    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    @Basic
    @Column(name = "username", nullable = true, length = 32)
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Basic
    @Column(name = "passwd", nullable = true, length = 32)
    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    @Basic
    @Column(name = "channel_num", nullable = false)
    public Integer getChannelNum() {
        return channelNum;
    }

    public void setChannelNum(Integer channelNum) {
        this.channelNum = channelNum;
    }

    @Basic
    @Column(name = "camera_type", nullable = false)
    public Integer getCameraType() {
        return cameraType;
    }

    public void setCameraType(Integer cameraType) {
        this.cameraType = cameraType;
    }

    @Basic
    @Column(name = "camera_type_name")
    public String getCameraTypeName() {
        return cameraTypeName;
    }

    public void setCameraTypeName(String cameraTypeName) {
        this.cameraTypeName = cameraTypeName;
    }

    @Basic
    @Column(name = "camera_version", nullable = false)
    public Integer getCameraVersion() {
        return cameraVersion;
    }

    public void setCameraVersion(Integer cameraVersion) {
        this.cameraVersion = cameraVersion;
    }

    @Basic
    @Column(name = "camera_version_name")
    public String getCameraVersionName() {
        return cameraVersionName;
    }

    public void setCameraVersionName(String cameraVersionName) {
        this.cameraVersionName = cameraVersionName;
    }

    @Basic
    @Column(name = "camera_version_sn")
    public String getCameraVersionSn() {
        return cameraVersionSn;
    }

    public void setCameraVersionSn(String cameraVersionSn) {
        this.cameraVersionSn = cameraVersionSn;
    }

    @Basic
    @Column(name = "camera_shape")
    public Integer getCameraShape() {
        return cameraShape;
    }

    public void setCameraShape(Integer cameraShape) {
        this.cameraShape = cameraShape;
    }

    @Basic
    @Column(name = "camera_shape_name")
    public String getCameraShapeName() {
        return cameraShapeName;
    }

    public void setCameraShapeName(String cameraShapeName) {
        this.cameraShapeName = cameraShapeName;
    }

    @Basic
    @Column(name = "direction")
    public Integer getDirection() {
        return direction;
    }

    public void setDirection(Integer direction) {
        this.direction = direction;
    }

    @Basic
    @Column(name = "pos")
    @Type(type = "jts_geometry")
    public Point getPos() {
        return pos;
    }

    public void setPos(Point pos) {
        this.pos = pos;
    }

    @Basic
    @Column(name = "floor_number")
    public Integer getFloorNumber() {
        return floorNumber;
    }

    public void setFloorNumber(Integer floorNumber) {
        this.floorNumber = floorNumber;
    }

    @Basic
    @Column(name = "permission_level")
    public Integer getPermissionLevel() {
        return permissionLevel;
    }

    public void setPermissionLevel(Integer permissionLevel) {
        this.permissionLevel = permissionLevel;
    }
}
